﻿using System.Data.Entity.ModelConfiguration;
using Silent.MDB.Common.Data;

namespace Silent.MDB.Server.Model.Contexts.Configurations.Entities
{
    public class FacultyConfiguration : EntityTypeConfiguration<Faculty>
    {
        public FacultyConfiguration()
        {
            HasKey(x => x.FacultyId);
            ToTable(typeof(Faculty).Name);
            Property(x => x.Address).HasMaxLength(255);
            Property(x => x.Name).HasMaxLength(255);
            Property(x => x.Dean).HasMaxLength(255);
            Property(x => x.DeaneryRoom).HasMaxLength(255);
        }
    }
}
